package com.hns.phone.master.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.hns.can.master.vo.LeftOrgVo;
import com.hns.frame.service.CommonService;
import com.hns.tool.pub.PubUtil;
import com.hns.tool.pub.SearchConditionVo;

@Service
public class PhoneOrganService extends CommonService {
	/**
     * 获取左侧机构-线路-车 树 for phone
     * @param searchConditionVo
     * @return
     * @author:lan
     * @email:763836737@qq.com
     */
    @SuppressWarnings("unchecked")
    public List<LeftOrgVo> getLeftOrg4Car4Phone(SearchConditionVo searchConditionVo){
        List<LeftOrgVo> list = PubUtil.convertListMapToObject(this.sqlMapDao.selectList("phoneOrgan.getLeftOrg4CarVo4Phone",searchConditionVo), LeftOrgVo.class);
        return list;
    }
    
    /**
     * 获取左侧机构-线路-车 树
     * @param searchConditionVo
     * @return
     * @author:lan
     * @email:763836737@qq.com
     */
    @SuppressWarnings("unchecked")
    public List<LeftOrgVo> getLeftOrg4Car(SearchConditionVo searchConditionVo){
        List<LeftOrgVo> list = PubUtil.convertListMapToObject(this.sqlMapDao.selectList("phoneOrgan.getLeftOrg4CarVo",searchConditionVo), LeftOrgVo.class);
        return list;
    }
}
